package Decorator;

/**
 * 牛奶装饰器
 */
public class MilkDecorator extends CoffeeDecorator {

    public MilkDecorator(Coffee decoratorCoffee) {
        super(decoratorCoffee);
    }

    @Override
    public double getCost() {
        return super.getCost() + 0.5;
    }

    @Override
    public String getDescription() {
        return super.getDescription() + "with milk";
    }

}
